<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Array</title>
</head>
<body>
<script>
    var arr1=new Array(1,2,3);
    document.write(arr1+"<br>");
    //1,2,3
    var arr2=new Array(5);
    document.write(arr2+"<br>");
    //,,,,
    var arr3=[1,2,3,4];
    document.write(arr3+"<br>");
    //1,2,3,4
    document.write(arr3.join("=")+"<br>");
    //1=2=3=4
    arr3.push(11);
    document.write(arr3.join("=")+"<br>");
    //1=2=3=4=11
</script>
</body>
</html>